from django.core.management.base import   BaseCommand
from apps.oaauth.models import  OADepartment
class Command(BaseCommand):
    def handle(self,*args,**options):
        boarder = OADepartment.objects.create(name="董事会",intro="董事会")
        developer = OADepartment.objects.create(name="研发部",intro="技术开发")
        operator = OADepartment.objects.create(name="运营部",intro="产品运营,客户运营")
        saler = OADepartment.objects.create(name="销售部",intro="销售部")
        hr = OADepartment.objects.create(name="人事部",intro="员工招聘,培训,考核")
        finance = OADepartment.objects.create(name="财务部",intro="财务部")
        self.stdout.write("部门初始化成功")